<template>
  <div class="index">
    <el-button type="primary" plain @click="toRegister">注册</el-button>
    <el-button type="primary" plain @click="toLogin">登录</el-button>
  </div>
</template>

<script>

export default {
  name: "Index",
  data(){
    return{

    }
  },
  methods: {
    toRegister: function (){
       this.$router.push("/register")
    },
    toLogin: function (){
      this.$router.push("/login")
    },
  }
}
</script>

<style scoped>

</style>